/*
 * @Author: canlong.shen
 * @Date: 2021-10-22 16:54:49
 * @LastEditors: your name
 * @LastEditTime: 2021-10-25 13:56:30
 * @Description: file content
 */
import Vuex from "vuex"

const Counter = {
    template: `<div>
          {{count}}
          {{sayHi}}
          </div>`,
    data() {
        return {
            start: 100022220,
        }
    },
    computed: {
        ...Vuex.mapState({
            count: function (state) {
                return this.start + state.count
            },
        }),
        sayHi() {
            return "hi"
        },
    },
}

export default Counter